package com.nk;

import netscape.javascript.JSObject;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@SpringBootApplication
public class AppClass {
    public static void main(String[] args) {
        SpringApplication.run(AppClass.class,args);
    }

    @RequestMapping("/test")
    public Map test(){
        HashMap hashMap = new HashMap();
        hashMap.put("name","nk");
        hashMap.put("age",10);
        return hashMap;
    }



}
